#include "clickcombobox.h"
#include <QDebug>
#include <QMouseEvent>

ClickComboBox::ClickComboBox(QWidget *parent):QComboBox(parent)
{

}

void ClickComboBox::mousePressEvent(QMouseEvent *e)
{

    if(e->button() == Qt::LeftButton)
    {
        qDebug() << "左键点击了QComboBox";
        emit portReset();
    }

    // 接着传递 事件信号
    QComboBox::mousePressEvent(e);
}
